#include "odbc/parameter.hpp"
#include <cassert>

namespace odbc
{

parameter::parameter( details::bindable_buffer_base* p_buffer)
	: p_bound_buffer_( p_buffer)
{
	assert( NULL != p_bound_buffer_);
}

// ---------------------------------------------------------------------------------------------------------------------

boost::any parameter::value() const
{
	return p_bound_buffer_->value();
}

// ---------------------------------------------------------------------------------------------------------------------

void parameter::set_value( const boost::any& val)
{
	p_bound_buffer_->set_value( val);
}

} // namespace odbc
